#!/bin/bash

name='fastcow'
baseurl='/home/larry/fastcow'
prevname=$(date +%s)

if [ -f "$baseurl/web/$name.tar.gz" ]; then
	rm $baseurl/web/$name.tar.gz 
fi

cd $baseurl
tar -zcvf $baseurl/web/$name.tar.gz fastcow

echo "success pack"
echo "last update in $prevname" > $baseurl/web/timestamp
